package com.jason.www.dao.impl;

import com.jason.www.code.BaseDaoImp;
import com.jason.www.dao.GiftCardMapper;
import com.jason.www.pojo.GiftCard;
import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

@Repository
public class GiftCardDaoImpl extends BaseDaoImp<GiftCard> implements GiftCardMapper {
    @Autowired
    @Qualifier("baseSqlSessionFactory")
    public void setSqlSessionFactory(SqlSessionFactory sqlSessionFactory) {
        super.sqlSessionFactory = sqlSessionFactory;
    }
    @Override
    public int deleteByPrimaryKey(Long id) {
        return 0;
    }

    @Override
    public int insert(GiftCard record) {
        return 0;
    }

    @Override
    public int insertSelective(GiftCard record) {
        return 0;
    }

    @Override
    public GiftCard selectByPrimaryKey(Long id) {
        return getPojoById("selectByPrimaryKey",id);
    }

    @Override
    public int updateByPrimaryKeySelective(GiftCard record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(GiftCard record) {
        return 0;
    }
}
